﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Courses.aspx.cs" Inherits="Courses" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headContent" Runat="Server">
    <style type="text/css">
        .style2
        {
            width: 61px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <h2> Courses </h2>
    <h4> Rate and review courses</h4>
    <p>
        Add a review by filling the form.
    </p>
    
    <table cellpadding="12" cellspacing="2" >
        <tr>
            <td class="style2">
                <asp:Label ID="lblTitle" runat="server" Text="Title"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtTitle" runat="server" Width="180px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblDescription" runat="server" Text="Description"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtDescription" runat="server" Height="52px" Width="319px" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblRating" runat="server" Text="Rating"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="lstRating" runat="server">
                    <asp:ListItem>Good</asp:ListItem>
                    <asp:ListItem>Moderate</asp:ListItem>
                    <asp:ListItem>Poor</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblContent" runat="server" Text="Content"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtContent" runat="server" Wrap="true" Height="116px" 
                    Width="578px" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnAddCourse" runat="server" Text="Add Course Review" 
                    onclick="btnAddCourse_Click" />
            </td>
        </tr>
    </table>
    
    <hr />
    <h4> Reviews</h4>
    <p> 
        <asp:Table ID="tblReviews" runat="server" CellPadding="5" CellSpacing="5" 
            Width="800px">
        </asp:Table>
    </p>
</asp:Content>

